import React from "react"
import ReactDOM from "react-dom"
import App from "./components/App"
import theme from "@chakra-ui/theme"
import { ChakraProvider, CSSReset } from "@chakra-ui/core"

ReactDOM.render(
  // 将默认主题导入 ChakraProvider 组件中
  <ChakraProvider theme={theme}>
    {/* 引入 css 重置组件 */}
    <CSSReset />
    <App />
  </ChakraProvider>,
  document.getElementById("root")
)